package com.ak.server.quartz.feign;

import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import com.ak.common.entity.constant.ServerConstants;
import com.ak.server.quartz.feign.fallback.UserServiceFallback;

/**
 * Feign客户端
 *
 * @author Vean
 */
@FeignClient(value = ServerConstants.AK_SERVER_SYSTEM, contextId = "userServiceClient", fallbackFactory = UserServiceFallback.class)
public interface IUserService {

    @GetMapping("user/user")
    Map<String, Object> getCurrentUser();
}
